<?php
/**
 * Created by PhpStorm.
 * User: Tso
 * Date: 2017/9/1
 * Time: 17:22
 */

namespace app\shop\controller;


use think\Cookie;

class LoginOut extends Common
{
    public function index()
    {
        Cookie::delete('user_info');

        if (!Cookie::has('user_info')) {

            $this->success('成功退出！', 'shop/Login/index');

        } else {
            $this->error('退出失败！');
        }

    }

}